﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Djs.Tools.FileCommander.Components;

namespace Djs.Tools.FileCommander.Forms
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
            this.DoubleBuffered = true;
            this.FillPanel();
        }
        private FileSystem.FileGroup FileGroup;
        private void FillPanel()
        {
            string path = @"\\centauri\Vyvoj\Zmenscr\";
            path = @"c:\Windows\System32";

            this.FileGroup = new FileSystem.FileGroup();
            this.FileGroup.Load(path);

            this.FileList.FillFrom(this.FileGroup);
            this.FilePanel2.Data = this.FileGroup;
        }
        private static int _CompareLvi(ListViewItem a, ListViewItem b)
        {
            return a.Text.CompareTo(b.Text);
        }
    }


}
